package view;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JPanel;

import model.player.Player;

public class GamePanel extends JPanel {
	
	private static final long serialVersionUID = 1L;
	
	private Player _player;
	
	private InformationPanel _infoPanel;
	
	
	public GamePanel(Player player) {
		
		this.setBackground(Color.BLACK);
		this.setPreferredSize(new Dimension(200, 250));
		
		FlowLayout fl = new FlowLayout();
		fl.setHgap(5);
		this.setLayout(fl);
		
		_player = player;
		_init();
	}


	private void _init() {
		
		_infoPanel = new InformationPanel(_player);
		this.add(_infoPanel);
		
		TowerPanel towerPanel = new TowerPanel();
		this.add(towerPanel);
	}

}
